Cocktail Help Reference
UnitOfWork<T> Class Members
See Also  Properties  Methods  Events Send Feedback
Cocktail Assembly > Cocktail Namespace : UnitOfWork<T> Class


Glossary Item Box

The following tables list the members exposed by UnitOfWork<T>.

Public Constructors

 NameDescription
Public ConstructorUnitOfWork<T> ConstructorCreates a new unit of work.  
Top

Public Properties

 NameDescription
Public PropertyEntitiesThe repository to retrieve entities.  
Public PropertyFactoryThe factory to create new entity instances.  
Top

Protected Properties

 NameDescription
Protected PropertyEntityManagerReturns the EntityManager used by this unit of work. (Inherited from Cocktail.UnitOfWork)
Top

Public Methods

 NameDescription
Public MethodClearResets the UnitOfWork to its initial state. (Inherited from Cocktail.UnitOfWork)
Public MethodCommitAsyncCommits all pending changes to the underlying data source. (Inherited from Cocktail.UnitOfWork)
Public MethodHasChangesReturns true if the unit of work contains pending changes. (Inherited from Cocktail.UnitOfWork)
Public MethodHasEntityReturns true if the provided entity is attached to the current UnitOfWork's EntityManager. (Inherited from Cocktail.UnitOfWork)
Public MethodRollbackRolls back all pending changes. (Inherited from Cocktail.UnitOfWork)
Top

Public Events

 NameDescription
Public EventEntityChangedFired whenever an entity associated with the current unit of work has changed in any significant manner. (Inherited from Cocktail.UnitOfWork)
Top

See Also

© 2013 All Rights Reserved.